package common.types;

public class Pair<T,E> implements Cloneable {

    private T left;
    private E right;
    
    public Pair(T left, E right) {
        this.left = left;
        this.right = right;
    }
    
    public T getLeft() {
        return left;
    }
    
    public E getRight() {
        return right;
    }
    
    @Override
    public String toString(){
    	return left + " - " + right;
    }
    
    @Override
    public boolean equals(Object pair){
    	return pair.toString().equalsIgnoreCase(this.toString());
    }
    
    @Override
    protected Object clone() throws CloneNotSupportedException {
    	return new Pair<T, E>(left, right);
    }
}
